#ifndef __CW32_HAL_TIME_H_
#define __CW32_HAL_TIME_H_

#include "cw32_hal_def.h"



void cw32_hal_btim_create_cycle_time(BTIM_TypeDef* btimx,uint16_t time_us);
void cw32_hal_btim_set_trgo_input(BTIM_TypeDef* btimx,uint16_t mode,uint16_t source, uint32_t polarity);
void cw32_hal_btim_set_trgo_output(BTIM_TypeDef* btimx,uint16_t source);

void cw32_hal_atim_create_cycle_time(ATIM_TypeDef* atimx,uint16_t time_us);

#endif


